<?php
namespace Seller\Model;
use Think\Model\ViewModel;

class RoleViewModel extends ViewModel
{
    public $viewFields = array(

        'manager' => array(
            'name' => "user_name",
            'id' => 'manager_id','last_login','last_ip' ,'mobile' ,'m_status','email',
            '_type' => 'INNER'
        ),
        'role_manager' => array(
            'role_id' ,
            '_on' => 'role_manager.manager_id = manager.id' ,
            '_type' => 'INNER'
        ),
        'role' => array(
            'name' => 'role_name',
            '_on' => 'role.role_id = role_manager.role_id' ,
            '_type' => 'INNER'
        )
    );
}

